package com.mz.mattress.client.timer;

import org.springframework.context.ApplicationListener;
import org.springframework.context.event.ContextRefreshedEvent;
import org.springframework.stereotype.Component;

@Component
public class MyRefreshedEventListener implements ApplicationListener<ContextRefreshedEvent> {

    @Override
    public void onApplicationEvent(ContextRefreshedEvent event) {

        Class<?> aClass = event.getSource().getClass();
        System.out.println(aClass);
        System.out.println("get_class=" + event.getClass());

    }
}
